package com.party.core.dao.read.crowdfund;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.audit.TransferAuditOutput;
import com.party.core.model.crowdfund.SupportTransfer;
import com.party.core.model.crowdfund.SupportTransferMaintenance;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 众筹支持转移数据读取
 * Created by huangwuming
 * on 2018/5/7/007.
 */
@Repository
public interface SupportTransferReadDao extends BaseReadDao<SupportTransfer>{
    SupportTransfer getBySourceId(@Param(value = "sourceId")String  sourceId);
    Integer getShiftToPeopleTotal(@Param(value = "targetId")String  targetId);
    Integer getACTShiftToPeopleTotal(@Param(value = "eventId")String  eventId,@Param(value = "sign") int sign);
    List<TransferAuditOutput> getZcTransferAuditList(@Param(value = "themeName")String themeName,
                                                     @Param(value = "partnerId")String partnerId, Page page);
    List<SupportTransferMaintenance> getSupporterTransfer(@Param(value = "group")int group);

    List<SupportTransfer> getByTargetProId(@Param(value = "projectId")String projectId);
}
